Optimal. Leaf size=50 \[ \frac {2 \sqrt {x}}{b \sqrt {a-b x}}-\frac {2 \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a-b x}}\right )}{b^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {49, 65, 223,
209} \begin {gather*} \frac {2 \sqrt {x}}{b \sqrt {a-b x}}-\frac {2 \text {ArcTan}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a-b x}}\right )}{b^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 49
Rule 65
Rule 209
Rule 223
Rubi steps
\begin {align*} \int \frac {\sqrt {x}}{(a-b x)^{3/2}} \, dx &=\frac {2 \sqrt {x}}{b \sqrt {a-b x}}-\frac {\int \frac {1}{\sqrt {x} \sqrt {a-b x}} \, dx}{b}\\ &=\frac {2 \sqrt {x}}{b \sqrt {a-b x}}-\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {a-b x^2}} \, dx,x,\sqrt {x}\right )}{b}\\ &=\frac {2 \sqrt {x}}{b \sqrt {a-b x}}-\frac {2 \text {Subst}\left (\int \frac {1}{1+b x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {a-b x}}\right )}{b}\\ &=\frac {2 \sqrt {x}}{b \sqrt {a-b x}}-\frac {2 \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a-b x}}\right )}{b^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 56, normalized size = 1.12 \begin {gather*} \frac {2 \sqrt {x}}{b \sqrt {a-b x}}-\frac {2 \log \left (-\sqrt {-b} \sqrt {x}+\sqrt {a-b x}\right )}{(-b)^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {\sqrt {x}}{\left (-b x +a \right )^{\frac {3}{2}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 38, normalized size = 0.76 \begin {gather*} \frac {2 \, \arctan \left (\frac {\sqrt {-b x + a}}{\sqrt {b} \sqrt {x}}\right )}{b^{\frac {3}{2}}} + \frac {2 \, \sqrt {x}}{\sqrt {-b x + a} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.90, size = 128, normalized size = 2.56 \begin {gather*} \left [-\frac {{\left (b x - a\right )} \sqrt {-b} \log \left (-2 \, b x - 2 \, \sqrt {-b x + a} \sqrt {-b} \sqrt {x} + a\right ) + 2 \, \sqrt {-b x + a} b \sqrt {x}}{b^{3} x - a b^{2}}, \frac {2 \, {\left ({\left (b x - a\right )} \sqrt {b} \arctan \left (\frac {\sqrt {-b x + a}}{\sqrt {b} \sqrt {x}}\right ) - \sqrt {-b x + a} b \sqrt {x}\right )}}{b^{3} x - a b^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.93, size = 102, normalized size = 2.04 \begin {gather*} \begin {cases} \frac {2 i \operatorname {acosh}{\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}} \right )}}{b^{\frac {3}{2}}} - \frac {2 i \sqrt {x}}{\sqrt {a} b \sqrt {-1 + \frac {b x}{a}}} & \text {for}\: \left |{\frac {b x}{a}}\right | > 1 \\- \frac {2 \operatorname {asin}{\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}} \right )}}{b^{\frac {3}{2}}} + \frac {2 \sqrt {x}}{\sqrt {a} b \sqrt {1 - \frac {b x}{a}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 98 vs.
\(2 (38) = 76\).
time = 20.15, size = 98, normalized size = 1.96 \begin {gather*} -\frac {{\left (\frac {4 \, a \sqrt {-b}}{{\left (\sqrt {-b x + a} \sqrt {-b} - \sqrt {{\left (b x - a\right )} b + a b}\right )}^{2} - a b} + \frac {\log \left ({\left (\sqrt {-b x + a} \sqrt {-b} - \sqrt {{\left (b x - a\right )} b + a b}\right )}^{2}\right )}{\sqrt {-b}}\right )} {\left | b \right |}}{b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\sqrt {x}}{{\left (a-b\,x\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________